package service.impl;

import DAO.TextDAO;
import entity.db.CitationTextDB;
import entity.db.KnowledgeFlowDB;
import service.TextService;

import java.util.List;

/**
 * @author ：hzs
 * @date ：Created in 2021/1/20 21:35
 * @description：
 * @modified By：
 * @version: $
 */
public class TextServiceImpl implements TextService {

    private TextDAO textDAO = new TextDAO();

    @Override
    public List<CitationTextDB> getAllCitationText() {
        return textDAO.getAllCitationText();
    }

    @Override
    public List<CitationTextDB> getCitationTextNotInKnowledgeFlowTable() {
        return textDAO.getCitationTextNotInKnowledgeFlowTable();
    }

    @Override
    public List<List<Object>> getKnowledgeFlowNotInKFContent() {
        return textDAO.getKnowledgeFlowNotInKFContent();
    }

    @Override
    public boolean batchInsertKnowledgeFlow(List<KnowledgeFlowDB> knowledgeFlowDBList) {
        return textDAO.batchInsertKnowledgeFlow(knowledgeFlowDBList);
    }
}
